﻿@model CategoryModel

<modal id="delete-category-dialog" sm-render-at-page-end="true" sm-size="Medium">
	<modal-header sm-title="@T("Admin.Catalog.Categories.Delete.Caption")"></modal-header>
    <modal-body>
		<form asp-action="Delete" method="post" id="delete-category-form">
			<input type="hidden" asp-for="Id" />
			<p>@T("Admin.Catalog.Categories.Delete.Hint")</p>
			<div class="form-check">
				<input type="radio" class="form-check-input" id="deleteType_1" name="deleteType" value="resetparent" checked="checked" />
				<label for="deleteType_1" class="form-check-label">
					@T("Admin.Catalog.Categories.Delete.ResetParentOfChilds")
				</label>
			</div>
			<div class="form-check mt-1">
				<input type="radio" class="form-check-input" id="deleteType_2" name="deleteType" value="deletechilds" />
				<label for="deleteType_2" class="form-check-label">
					@T("Admin.Catalog.Categories.Delete.DeleteChilds")
				</label>
			</div>
		</form>
	</modal-body>
    <modal-footer>
		<button class="btn btn-secondary btn-flat" data-dismiss="modal">
			<span>@T("Common.Cancel")</span>
		</button>
		<button class="btn btn-primary" onclick="$('#delete-category-form').submit();">
			<span>@T("Common.OK")</span>
		</button>
    </modal-footer>
</modal>
